Returns the same Success if the predicate is satisfied for the value. Otherwise returns a Failure.
Returns the same Success casted to type R if it is R. Otherwise returns a Failure.
Returns the same Success if the predicate is not satisfied for the value. Otherwise returns a Failure.
Returns the same Success if the predicate is satisfied for the value. Otherwise returns a Failure containing the given throwable.
Maps value of a Success to a new Try using transform or returns the same Try if this is a Failure.
Transforms a Success using successTransform or a Failure using failureTransform.
Runs action if this is a Success. Returns Unit without any action if this is a Failure.
Gets the value of a Success or throw an exception from a Failure.
Gets the value of a Success or null if this is a Failure.
null
Maps value of a Success using transform or returns the same Try if this is a Failure.
Converts this Try to Either.
Converts this Try to Option.
Returns Success containing a Pair of values of this and other if both instances of Try are Success. Otherwise returns first Failure.
Pair
Returns Success containing the result of applying transform to both values of this and other if both instances of Try are Success. Otherwise returns first Failure.
Returns a Success with an exception it this is a Failure or a Failure if this is a Success.
Returns true if this is a Failure or false if this is Success.
true
false
Returns true if this is a Success or false if this is Failure.